MySQL: Free the results when QSqlQuery::finished() is called
authorDaniel Vrátil <dvratil@kde.org>
Sat, 1 Dec 2018 16:56:41 +0000 (17:56 +0100)
committerLisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Sun, 10 Feb 2019 14:47:21 +0000 (14:47 +0000)
commit9116d8b57310b961c27b3091d26306d42dfc5b53
tree0d2ae1644f1864edb728a7e1b377cbba65cefe01
parent00e48dcab5c59d38cdac2ccee3435db3e589050d
MySQL: Free the results when QSqlQuery::finished() is called

Calling mysql_stmt_free_result() frees the results of the last
executed query while keeping the prepared statement valid. This
allows one to keep around prepared QSqlQueries without the overhead
of keeping all the results in memory.

Change-Id: I4589e90857cc4e9a6f9612799bfca967a67e2ab2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Gbp-Pq: Name mysql_free_results_when_qsqlquery_finished_is_called.patch
src/plugins/sqldrivers/mysql/qsql_mysql.cpp